﻿namespace EyeOpen.TimeAssistant.Data.Nhibernate.Mapping
{
    using EyeOpen.Data.Nibernate.Mapping;
    using EyeOpen.TimeAssistant.Domain;

    public class UserStoryTagMap : LogicalEntityMap<UserStoryTag>
    {
        protected UserStoryTagMap()
        {
            References(x => x.Tag)
                .ColumnName("TagId")
                .Not.Nullable();

            References(x => x.UserStory)
                .ColumnName("UserStoryId")
                .Not.Nullable();
        }
    }
}